﻿using GalaSoft.MvvmLight;

namespace Budgetsch.WP7.ViewModel.Comment
{
    using Budgetsch.WP7.Model;

    /// <summary>
    /// This class contains properties that a View can data bind to.
    /// <para>
    /// Use the <strong>mvvminpc</strong> snippet to add bindable properties to this ViewModel.
    /// </para>
    /// <para>
    /// See http://www.galasoft.ch/mvvm/getstarted
    /// </para>
    /// </summary>
    public class CommentDetailsViewModel : ViewModelBase
    {
        public string UserName { get; set; }

        public string Comment { get; set; }

        public string TimeStamp { get; set; }

        /// <summary>
        /// Initializes a new instance of the CommentDetailsViewModel class.
        /// </summary>
        /// <param name="comment"></param>
        public CommentDetailsViewModel(WP7DataService.IncomeComment comment)
        {
            UserName = comment.User.UserName;
            Comment = comment.Comment;
            //TimeStamp = comment.DateTime;
        }

        public CommentDetailsViewModel(WP7DataService.CostComment comment)
        {
            UserName = comment.User.UserName;
            Comment = comment.Comment;
            //TimeStamp = comment.DateTime;
        }

        public CommentDetailsViewModel(WP7DataService.SavingComment comment)
        {
            UserName = comment.User.UserName;
            Comment = comment.Comment;
            //TimeStamp = comment.DateTime;
        }

    }
}